Count Inversions In Programming